package RW;
//定义一个动物类，包含名称，大小，体重等私有属性，并定义跑，跳，走等方法
public class Animal {
private String name="大象";
private String daxiao="非常大";
private double weight=12;
public String getName() {
	return name;
}
public void setName(String name) {
	this.name = name;
}
public String getDaxiao() {
	return daxiao;
}
public void setDaxiao(String daxiao) {
	this.daxiao = daxiao;
}
public double getWeight() {
	return weight;
}
public void setWeight(double weight) {
	this.weight = weight;
}

public void run() {
	System.out.println(name+"在跑");
}
public void jump() {
	System.out.println(name+"在跳");
}public void go() {
	System.out.println(name+"在走");
}
}

